Optimal. Leaf size=50 \[ -\frac {2 x^{-n/2}}{b n}+\frac {2 \sqrt {c} \tan ^{-1}\left (\frac {\sqrt {b} x^{-n/2}}{\sqrt {c}}\right )}{b^{3/2} n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1598, 352, 199,
327, 211} \begin {gather*} \frac {2 \sqrt {c} \text {ArcTan}\left (\frac {\sqrt {b} x^{-n/2}}{\sqrt {c}}\right )}{b^{3/2} n}-\frac {2 x^{-n/2}}{b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 199
Rule 211
Rule 327
Rule 352
Rule 1598
Rubi steps
\begin {align*} \int \frac {x^{-1+\frac {n}{2}}}{b x^n+c x^{2 n}} \, dx &=\int \frac {x^{-1-\frac {n}{2}}}{b+c x^n} \, dx\\ &=-\frac {2 \text {Subst}\left (\int \frac {1}{b+\frac {c}{x^2}} \, dx,x,x^{-n/2}\right )}{n}\\ &=-\frac {2 \text {Subst}\left (\int \frac {x^2}{c+b x^2} \, dx,x,x^{-n/2}\right )}{n}\\ &=-\frac {2 x^{-n/2}}{b n}+\frac {(2 c) \text {Subst}\left (\int \frac {1}{c+b x^2} \, dx,x,x^{-n/2}\right )}{b n}\\ &=-\frac {2 x^{-n/2}}{b n}+\frac {2 \sqrt {c} \tan ^{-1}\left (\frac {\sqrt {b} x^{-n/2}}{\sqrt {c}}\right )}{b^{3/2} n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.03, size = 32, normalized size = 0.64 \begin {gather*} -\frac {2 x^{-n/2} \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-\frac {c x^n}{b}\right )}{b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.19, size = 79, normalized size = 1.58
method | result | size |
risch | \(-\frac {2 x^{-\frac {n}{2}}}{b n}+\frac {\sqrt {-b c}\, \ln \left (x^{\frac {n}{2}}-\frac {\sqrt {-b c}}{c}\right )}{b^{2} n}-\frac {\sqrt {-b c}\, \ln \left (x^{\frac {n}{2}}+\frac {\sqrt {-b c}}{c}\right )}{b^{2} n}\) | \(79\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.49, size = 151, normalized size = 3.02 \begin {gather*} \left [\frac {x x^{\frac {1}{2} \, n - 1} \sqrt {-\frac {c}{b}} \log \left (\frac {c x^{2} x^{n - 2} - 2 \, b x x^{\frac {1}{2} \, n - 1} \sqrt {-\frac {c}{b}} - b}{c x^{2} x^{n - 2} + b}\right ) - 2}{b n x x^{\frac {1}{2} \, n - 1}}, \frac {2 \, {\left (x x^{\frac {1}{2} \, n - 1} \sqrt {\frac {c}{b}} \arctan \left (\frac {b \sqrt {\frac {c}{b}}}{c x x^{\frac {1}{2} \, n - 1}}\right ) - 1\right )}}{b n x x^{\frac {1}{2} \, n - 1}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 6.36, size = 38, normalized size = 0.76 \begin {gather*} -\frac {2 \, {\left (\frac {c \arctan \left (\frac {c \sqrt {x^{n}}}{\sqrt {b c}}\right )}{\sqrt {b c} b} + \frac {1}{b \sqrt {x^{n}}}\right )}}{n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {x^{\frac {n}{2}-1}}{b\,x^n+c\,x^{2\,n}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________